package com.cvte.shop.generator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cvte.shop.generator.entity.SysGenerator;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @since 2019-04-15
 */
public interface SysGeneratorMapper extends BaseMapper<SysGenerator> {


    List<String> getTables();

    List<SysGenerator> selectPageList(IPage<SysGenerator> page);

    void insertGenerarot(@Param("sysGenerator") SysGenerator sysGenerator);

    SysGenerator selectGeneratorById(@Param("id") String id);

    void updateGeneratorById(@Param("sysGenerator") SysGenerator sysGenerator);

    void deleteGeneratorById(@Param("id")String id);


}
